package com.xbongbong.saas.model.impl;

import com.xbongbong.saas.domain.dao.PrinterDao;
import com.xbongbong.saas.domain.entity.PrinterEntity;
import com.xbongbong.saas.model.PrinterModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

;

/**
 * @author wujian
 */
@Service("printerModel")
public class PrinterModelImpl implements PrinterModel {
    @Resource
    private PrinterDao printerDao;

    @Override
    public Long insert(PrinterEntity entity) {
        return printerDao.insert(entity);
    }

    @Override
    public void insertBatch(List<PrinterEntity> list) {
        printerDao.insertBatch(list);
    }

    @Override
    public List<PrinterEntity> findEntities(Map<String, Object> param) {
        return printerDao.findEntities(param);
    }

    @Override
    public Integer getEntityCount(Map<String, Object> param) {
        return printerDao.getEntitiesCount(param);
    }

    @Override
    public void update(PrinterEntity entity) {
        printerDao.update(entity);
    }

    @Override
    public PrinterEntity getByKey(Long key, String corpid) {
        return printerDao.getByKey(key, corpid);
    }

    @Override
    public void updateBatchDel(List<Long> list, String corpid) {
        printerDao.updateBatchDel(list,corpid);
    }

    @Override
    public void updateBatch(List<PrinterEntity> list, String corpid) {
        printerDao.updateBatch(list,corpid);
    }

}
